import Taro , { Component } from '@tarojs/taro'
import { View , Image , Text} from '@tarojs/components'

import './listEmptyView.scss'
import emptyIcon from '../../image/ic_empty.png'

export default class listEmptyView extends Component{

  defaultProps = {
    emptyText:'暂无数据',
    emptyImage:emptyIcon,
  }

  render(){
    return( 
      <View className='empty-view-container'>
        <Image className='empty-view-icon' src={this.props.emptyImage}></Image>
        <Text className='empty-view-text'>{this.props.emptyText}</Text>
      </View>
    )
  }


}



